Partial Computations in Constructive
نویسنده
چکیده
Constructive type theory as conceived by Per Martin-LL of has a very rich type system, but partial functions cannot be typed. This also makes it impossible to directly write recursive programs. In this paper a constructive type theory Red is deened which includes a partial type constructor A; objects in the type A may diverge, but if they converge, they must be members of A. A xed point typing principle is given to allow typing of recursive functions. The extraction paradigm of type theory, whereby programs are automatically extracted from constructive proofs, is extended to allow extraction of xed points. There is a Scott xed point induction principle for reasoning about these functions. Soundness of the theory is proven. Type theory becomes a more expressive programming logic as a result.
منابع مشابه
New Foundations for Fixpoint Computations: FIX-Hyperdoctrines and the FIX-Logic
This paper introduces a new higher-order typed constructive predicate logic for fixpoint computations, which exploits the categorical semantics of computations introduced by Moggi [Mog 89] and contains a version of Martin Löf’s ‘iteration type’ [MarL 83]. The type system enforces a separation of computations from values. The logic contains a novel form of fixpoint induction and can express part...
متن کاملNew Foundations for Fixpoint Computations
This paper introduces a new higher-order typed constructive predicate logic for fixpoint computations, which exploits the categorical semantics of computations introduced by Moggi [8] and contains a strong version of Martin-Lof’s ‘iteration type’ [ll]. The type system enforces a separation of computations from values. The logic contains a novel form of fixpoint induction and can express partial...
متن کاملTHE ELZAKI HOMOTOPY PERTURBATION METHOD FOR PARTIAL DIFFERENTIAL EQUATIONS
In this paper, Elzaki Homotopy Perturbation Method is employed for solving linear and nonlinear differential equations with a variable coffecient. This method is a combination of Elzaki transform and Homotopy Perturbation Method. The aim of using Elzaki transform is to overcome the deficiencies that mainly caused by unsatised conditions in some semi-analytical methods such as Homotopy Perturbat...
متن کاملPRODUCTION MODEL WITH SELLING PRICE DEPENDENT DEMAND AND PARTIAL BACKLOGGING UNDER INFLATION
We developed an inventory model for decaying items with selling price dependent demand in inflationary environment. Deterioration rate is taken as two parameter Weibull distribution. Shortages in inventory are allowed with partial backlogging. Backlogging rate is taken as exponential decreasing function of time. Profit maximization technique is used in this study.
متن کاملConstructive analysis, types and exact real numbers
In the present paper, we will discuss various aspects of computable/constructive analysis, namely semantics, proofs and computations. We will present some of the problems and solutions of exact real arithmetic varying from concrete implementations, representation and algorithms to various models for real computation. We then put these models in a uniform framework using realisability, opening t...
متن کامل